<?php

namespace App\Services;

use App\Models\User;

/**
 * 用于包装User
 */
class LoginUser
{
    /**
     * @var User
     */
    public $user;

    public function __construct($user)
    {
        $this->user = $user;
    }

    public function isLogin()
    {
        return $this->user !== null;
    }
}
